
import { createApp } from 'vue';
import App from './App.vue';
import router from '@/router/index';
import pinia from '@/store';
// 引入外部组件库
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
// 引入全局组件
import  Top from '@/components/hospital_top/Top.vue';
import Bottom from '@/components/hospital_bottom/Bottom.vue';
import  Login from '@/components/login/Login.vue';
import Visitor from "@/components/Visitor/Visitor.vue";
// 引入自定义插件
// import WindowSizePlugin from './window_size_plugin'

// 路由鉴权
import './permisstion'

const app = createApp(App);

app.component('Top', Top);
app.component('Bottom', Bottom);
app.component('Login', Login);
app.component('Visitor', Visitor);
app.use(router);
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(pinia);
// app.use(WindowSizePlugin); // 注册自定义插件

app.mount('#app')
